<%-- 
    Document   : tecnicoListar
    Created on : 07/04/2013, 10:38:23
    Author     : jhonatan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Listar Tecnicos</title>
    </head>
    <body>
        <h1>Todos Cadastrados</h1>
        <input type="button" value="Inserir" onClick="window.location='/CadastroTimes/SltTecnico?operacao=incluir'" />
        <table border="1">
            <tr>
                <td>Nome</td>
                <td>Time</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <c:forEach var="lista" items="${requestScope.itens}">
            <tr>
                <td>${lista.nm_tecnico}</td>
                <td>${lista.nm_time}</td>
                <td><a href="/CadastroTimes/SltTecnico?operacao=editar&chave=${lista.id_tecnico}">&lt;Editar&gt;</a></td>
                <td><a href="/CadastroTimes/SltTecnico?operacao=excluir&chave=${lista.id_tecnico}">&lt;Excluir&gt;</a></td>
            </tr>
            </c:forEach>
        </table>
    </body>
</html>
